package entity;

import java.util.HashSet;
import java.util.Set;

public class Grades {
		private String id;
		private String course;
		private String grade;
		private Set<Grades> grades = new HashSet<>();
		
		public Grades(){
			super();
		}
		
		public Grades(String id, String course, String grade) {
			super();
			this.id = id;
			this.course = course;
			this.grade=grade;
		}
		
		public  String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		
		public String getCourse() {
			return course;
		}
		public void setCourse(String course) {
			this.course = course;
		}
		
		public String getGrade() {
			return grade;
		}
		public void setgrade(String grade) {
			this.grade = grade;
		}
		@Override
		public String toString() {
			StringBuffer stringBuffer = new StringBuffer();
			stringBuffer.append(String.format("%s,%s,%s\n", id, course,grade));		
			return stringBuffer.toString();
		}
}
